<extend name="Public/base" />

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>项目详情</h2>
    </div>
    <!-- 标签页导航 -->
    <div class="tab-wrap">
        <form id="form" action="{:U('edit?model='.$model['id'])}" method="post" class="form-horizontal">
        <div class="tab-content">
            <div class="form-item cf">
                <label class="item-label">项目名称</label>
                <p>{$info.name}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">联系人</label>
                <p>{$info.linkname}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">联系电话</label>
                <p>{$info.linknum}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">预算</label>
                <p>{$info.linknum}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">周期</label>
                <p>
                    <if condition="$info['duration'] eq 1">一周内
                    <elseif condition="$info['duration'] eq 2"/>一月内
                    <elseif condition="$info['duration'] eq 3"/>三月内
                    <elseif condition="$info['duration'] eq 4"/>半年内
                    <else/>未写时间</if>
                </p>
            </div>
            <div class="form-item cf">
                <label class="item-label">竞标人数</label>
                <p>{$info.bidnum}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">创建时间</label>
                <p>{$info.create_time|date='Y-m-d H:i:s',###}</p>
            </div>
            <div class="form-item cf">
                <label class="item-label">竞标状态</label>
                <p>
                    <if condition="$info['bidstate'] eq 1"><b style="color:#4cdb00;">已完成</b>
                        <elseif condition="$info['bidstate'] eq 2"/><i class="badge-warning">竞标中</i>
                        <elseif condition="$info['bidstate'] eq 4"/><i class="badge-warning">工作中</i>
                        <else/><i style="color: red;">未中标</i>
                    </if>
                </p>
            </div>
            <div class="form-item cf">
                <label class="item-label">审核状态</label>
                <p>
                    <if condition="$info['status'] eq 1"><b style="color:#4cdb00;">已通过</b>
                    <elseif condition="$info['status'] eq 2"/><i class="badge-warning">待审</i>
                    <else/><i style="color: red;">已拒绝</i></if>
                </p>
            </div>
            <div class="form-item cf">
                <label class="item-label">项目简介</label>
                <p>{$info.desc}</p>
            </div>
            <div class="form-item cf">
                <a class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</a>
            </div>
        </div>
        </form>
    </div>
</block>